def generate_string(rows, columns, positions):
    result = ""
    for col in range(1, columns + 1):
        for row in range(1, rows + 1):
            for position in positions:
                result += f"[{row}, {col}, {position}]"
                print(f"{col}列{row}行{position}")
            result += "\t"  # Add a tab between columns
    return result

rows = 2
columns = 15
positions = ["上", "中", "下"]

generated_string = generate_string(rows, columns, positions)
# print(generated_string)
